<?php
/**
 * 前端公众数据
 */
namespace App\Http\ViewComposers;

use App\Http\Libs\WebCommon;
use Illuminate\View\View;



class WebComposer
{
    private $data;

    public function __construct()
    {
        $this->data = new WebCommon();
    }

    public function compose(View $view)
    {
        $view->with([
            'nav'=>$this->data->nav,
        ]);
    }
}
